<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

	<fieldset>
		<legend>Cuentas creadas:</legend>
		<table>
			<tr>
				<td><strong>Nombre</strong></td>
				<td><strong>Email</strong></td>
			</tr>
			<c:forEach var="acc" items="${accounts}">
				<tr>
					<td>${acc.name}</td>
					<td>${acc.email}</td>
					<td><a href="account/${acc.name}">Detalles</a></td>
				</tr>			
			</c:forEach>
		</table>
	</fieldset>
	<a href="/SpringTest/account/createForm">Crear Cuenta</a>
